function loadGridData(listId, pagerId, frmId)
{
	var formData = frmId;
	if(frmId == undefined || frmId == null)
	{
		formData = {};
	}
	else if('string' == typeof(frmId))
	{
		formData = serializeForm(frmId);
	}
	var listViewListCode = $('#listViewListCode');
	var listViewHeaderName = $('#listViewHeaderName');
	var listViewColumn = $('#listViewColumn');
	var listViewPageSize = $('#listViewPageSize');
	var listViewListName = $('#listViewListName');
	var listViewHasCheckbox = $('#listViewHasCheckbox');
	var listViewListWidth = $('#listViewListWidth');
	var headerName = listViewHeaderName.val().split(',');
	var column = eval(listViewColumn.val());
	var pageSize = (parseInt(listViewPageSize.val()) == 0) ? 1000000 : listViewPageSize.val();
	var listName = listViewListName.val();
	var hasCheckbox = ('Y' == listViewHasCheckbox.val()) ? true : false;
	var listWidth = getBodyWidth();
	if(isNotNull(listViewListWidth.val()))
	{
		listWidth = listViewListWidth.val();
	}
	newJqGrid({
    	id: 'id',
    	gridId: listId,
    	pagerId: pagerId,
    	url: 'inner/core/loadGridData.action?lvvo.listCode=' + listViewListCode.val(),
    	head: headerName,
    	column: column,
    	width: listWidth,
    	height: 'auto',
    	hasCb: hasCheckbox,
    	pageSize: pageSize,
    	title: listName,
    	postData: formData
    });
	
	$(window).resize(function(){
		if(!isNotNull(listViewListWidth.val()))
		{
			gridAutoWidth('listGrid', 'win');
		}
    });
}

/*function getPassParameters()
{
	var textParam = $('input:text[class*="pass"]');
	var hiddenParam = $('input:hidden[class*="pass"]');
	var selectParam = $('select[class*="pass"]');
	var checkboxParam = $('input:checkbox[class*="pass"][checked]');
	var radioParam = $('input:radio[class*="pass"][checked]');
	var textLen = textParam.length;
	var hiddenLen = hiddenParam.length;
	var selectLen = selectParam.length;
	var checkboxLen = checkboxParam.length;
	var radioLen = radioParam.length;
	var param = {};
	for(var i = 0; i < textLen; i++)
	{
		var textx = $(textParam.get(i));
		var namex = textx.attr('name');
		param['paramObj.' + namex] = textx.val();
	}
	for(var i = 0; i < hiddenLen; i++)
	{
		var hiddenx = $(hiddenParam.get(i));
		var namex = hiddenx.attr('name');
		param['paramObj.' + namex] = hiddenx.val();
	}
	for(var i = 0; i < selectLen; i++)
	{
		var selectx = $(selectParam.get(i));
		var namex = selectx.attr('name');
		param['paramObj.' + namex] = selectx.val();
	}
	
	var cbGroup = {};
	for(var i = 0; i < checkboxLen; i++)
	{
		var cbx = $(checkboxParam.get(i));
		var cbName = cbx.attr('name');
		if(cbGroup[cbName] == null)
		{
			cbGroup[cbName] = ',' + cbx.val();
		}
		else
		{
			cbGroup[cbName] += ',' + cbx.val();
		}
	}
	
	for(key in cbGroup)
	{
		var ids = cbGroup[key];
		if(isNotNull(ids))
		{
			ids = ids.substring(1);
			param['paramObj.' + key] = ids;
		}
	}
	
	for(var i = 0; i < radioLen; i++)
	{
		var radiox = $(radioParam.get(i));
		var namex = radiox.attr('name');
		param['paramObj.' + namex] = radiox.val();
	}
	return param;
}*/